﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace TrainStation.Tracks
{
    public class LineTrack : ITrack
    {
        public ITrack Next { get; set; }
        public ITrack Previous { get; set; }

        public double Length { get; set; }
        public bool IsBlocked { get; set; }

        public LineTrack()
        {
            Length = 10;
        }

        public void LinkTrack( ITrack track )
        {
            this.Next = track;
        }

        public Train Train { get; set; }
    }
}
